package com.atguigu.yygh.order;

import com.atguigu.yygh.vo.order.OrderCountQueryVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @author ybl
 * @version 1.9
 * @date 2021/5/31 20:03
 */
@FeignClient(value = "service-order")
@Repository
public interface OrderFeignClient {
  /**
   * 获取订单统计数据
   */
  @PostMapping("/api/order/orderInfo/inner/getCountMap")
  Map<String, Object> getCountMap(@RequestBody OrderCountQueryVo orderCountQueryVo);

}
